<?php require_once('Connections/dis01.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_dis01, $dis01);
$query_ls_versiculo = "SELECT verso_id, verso_descricao FROM versiculos ORDER BY verso_id DESC";
$ls_versiculo = mysql_query($query_ls_versiculo, $dis01) or die(mysql_error());
$row_ls_versiculo = mysql_fetch_assoc($ls_versiculo);
$totalRows_ls_versiculo = mysql_num_rows($ls_versiculo);

mysql_select_db($database_dis01, $dis01);
$query_ls_msg = "SELECT dev_id, dev_data, dev_titulo, dev_resumo, dev_descricao, dev_tp_msg, dev_situacao, dev_cadastrador FROM devocional ORDER BY dev_id DESC";
$ls_msg = mysql_query($query_ls_msg, $dis01) or die(mysql_error());
$row_ls_msg = mysql_fetch_assoc($ls_msg);
$totalRows_ls_msg = mysql_num_rows($ls_msg);
?>
<!DOCTYPE HTML5>
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Disseminando.com</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="css/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />	

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js">

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<link rel="stylesheet" href="css/slimbox2.css" type="text/css" media="screen" /> 
<script type="text/JavaScript" src="js/slimbox2.js"></script>
 

	
    <style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:1;
}
-->
    </style>
</head>
    <body id="home">


	<div id="templatemo_wrapper">

	<div id="templatemo_header">
    	<div id="site_title"><img src="images/logo_projeto.png" width="296" height="76" /></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
            <ul>
                <li><a href="#" class="selected">Inicio</a></li>
                <li><a href="videos.php">Videos</a></li>
                <!--<li><a href="contato.php">Contato</a></li>-->
                <li><a href="cad_nv_usu1003.php">Registrar</a></li>
                <li><a href="login.php">Login</a></li>
            </ul>
            <br style="clear: left" />
        </div> <!-- end of templatemo_menu -->
    </div> <!-- END of header -->
    
    <div id="templatemo_slider"><span class="sliderframe"></span>
    	 <div class="slider-wrapper theme-orman">
            <div id="slider" class="nivoSlider">
            	<img src="images/slider/01.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/06.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/05.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/02.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/06.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/07.jpg" alt="slider image 2" title="#htmlcaption"/>
                <img src="images/slider/03.jpg" alt="slider image 2" title="#htmlcaption"/>
            </div>
            <div id="htmlcaption" class="nivo-html-caption">
                <strong>Contato: antoniomarcosborges2008@gmail.com</strong>.
            </div>
        </div> 
		<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider({
				controlNav:false,
   			 directionNavHide: false
			});
        });
        </script>
    </div><!-- END of templatemo_slider -->
    
    <div id="templatemo_twitter">
    	<?php echo $row_ls_versiculo['verso_descricao']; ?>
    </div> <!-- END of twitter -->
    
    <div id="templatemo_main">
    
    <div id="templatemo_content" class="left">
          <div class="post-item last_post">
            <div class="post-meta">                	
                  <div class="post-meta-content">
                    	<h2>Mensagem Evangelistica</h2>                                                
                 </div>                    
                    <div class="clear"></div>
				</div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="19%" height="30" valign="top">Publicada em </td>
                    <td width="81%" valign="top"><?php echo $row_ls_msg['dev_data']; ?></td>
                  </tr>
                  <tr>
                    <td height="29" valign="top">Titulo </td>
                    <td valign="top"><?php echo $row_ls_msg['dev_titulo']; ?></td>
                  </tr>
                  <tr>
                    <td height="47" valign="top">Resumo </td>
                    <td valign="top"><p align="justify"><?php echo $row_ls_msg['dev_resumo']; ?></p></td>
                  </tr>
                  <tr>
                    <td height="30" valign="top">Mensagem </td>
                    <td><p align="justify"><?php echo $row_ls_msg['dev_descricao']; ?></p></td>
                  </tr>
                  <tr>
                    <td height="34">Autor </td>
                    <td><?php echo $row_ls_msg['dev_cadastrador']; ?></td>
                  </tr>
                </table>
                <p>&nbsp;</p>
            </div>
            <br>
            <p><img src="images/destaque.jpg" width="250" height="122"></p>
            <br>
            
              <?php
			  
			     require_once('Connections/dis01.php');
			     			 
				 //Realiza consulta no banco de dados 
				 $sql = mysql_query("select * from anuncios");
				   while($linha = mysql_fetch_array($sql)){
					   $id = $linha['anun_id'];
					   $foto = $linha['anun_foto'];
					   $sit = $linha['anun_situacao'];
					   $cad = $linha['anun_cad'];
			  ?>
                <div style="margin:20px 20px; float:left">
				
					 <img src ="fotos/<?php echo $foto ?>" width="400" height="400" />
				
                </div>  	   
			  <?php
					   
				   }
              
              ?>
             
            <div class="sidebar_section">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                   <td><a href="http://ad.zanox.com/ppc/?31260575C1405152018T" target="_blank"><img src="http://ad.zanox.com/ppv/?31260575C1405152018" align="bottom" width="468" height="60" border="0" hspace="1" alt="468x60_queima"></a>                 </td>
                </tr>
              </table>
            </div> 
      </div>
		
        </div> <!-- END of content -->
                
		<div id="templatemo_sidebar" class="right">
			
		<div class="sidebar_section">
                   <h2>Mensagens Antigas</h2>
                      <a href="publicacao1001.php"><img src="images/mensagem01.jpg" alt="services" /></a>
		</div>
               <div class="sidebar_section">
                 <img src="images/parceiro01.jpg" alt="services"  />
              
	       </div>
           
           <div class="sidebar_section">
           <script language="JavaScript"> function abrir(URL) {     var width = 550;   var height = 760;     var left = 99;   var top = 99;     window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');   } </script> <a href="javascript:abrir('http://www.publicidadegospel.com/Suporte/chat.php?a=97cea');"><img alt="Clique e ouça!" title="WEB RADIO RGA" src="http://builder01.hstbr.net/uploads_images/2950/519ebccb7f456cd013c04dd63ca8c671.gif" border="0" width="256" height="177"/></a><br/> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="256" height="24" id="player" name="player">   <param name="movie" value="http://streaming15.hstbr.net/static/jwplayer/player_simple.swf" />   <param name="allowfullscreen" value="true" />   <param name="allowscriptaccess" value="always" />   <param name="wmode" value="transparent" />   <param name="flashvars" value="file=http://streaming15.hstbr.net:8124/live?type=.flv&provider=video&autostart=true&skin=http://streaming15.hstbr.net/static/jwplayer/skin.zip" /><embed type="application/x-shockwave-flash" src="http://streaming15.hstbr.net/static/jwplayer/player_simple.swf" width="256" height="24" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" flashvars="file=http://streaming15.hstbr.net:8124/live?type=.flv&provider=video&autostart=true&skin=http://streaming15.hstbr.net/static/jwplayer/skin.zip" />            </object> 
              
			</div>                     
               
            <div class="sidebar_section">
              <a href="http://ministeriodecasaisamovc.com/" target="_blank"><img src="images/amovc02.png" alt="services"  /></a>
              
 			</div>
            <div class="sidebar_section">
          <!-- COMEÇO do código HTML da afiliação zanox-->
<!-- (O código HTML não pode ser alterado para que possa funcionar corretamente. )-->
<a href="http://ad.zanox.com/ppc/?31260608C1366543290T" target="_blank"><img src="http://ad.zanox.com/ppv/?31260608C1366543290" align="bottom" width="300" height="250" border="0" hspace="1" alt="Natura - Dia das Mães 300x250"></a>
           <!-- ENDING of the zanox-affiliate HTML-Code --> 
 			</div> 
            
            <div class="sidebar_section">
             <!-- COMEÇO do código HTML da afiliação zanox-->
<!-- (O código HTML não pode ser alterado para que possa funcionar corretamente. )-->
<a href="http://ad.zanox.com/ppc/?31260651C154643520T"><img src="http://ad.zanox.com/ppv/?31260651C154643520" align="bottom" width="300" height="250" border="0" hspace="1" alt="GIF CDs - 300x250"></a>
<!-- ENDING of the zanox-affiliate HTML-Code --> 
 			</div>  
            
            <div class="sidebar_section">
             <!-- COMEÇO do código HTML da afiliação zanox-->
<!-- (O código HTML não pode ser alterado para que possa funcionar corretamente. )-->
<a href="http://ad.zanox.com/ppc/?31260659C1727455684T"><img src="http://ad.zanox.com/ppv/?31260659C1727455684" align="bottom" width="250" height="250" border="0" hspace="1" alt="250x250_Passagens"></a>
<!-- ENDING of the zanox-affiliate HTML-Code -->
 			</div>  
	  </div> 
       
        <div class="clear"></div>

</div> <!-- END of wrapper -->

<div id="templatemo_bottom_wrapper">
	<div id="templatemo_bottom">
    	
        <div class="col col_3">
        
          
        </div>        
        <div class="clear"></div>
    </div> <!-- END of bottom -->
    
</div> <!-- END of bottom wrapper -->

<div id="templatemo_footer_wrapper">
	<div id="templatemo_footer">
    <!--
    <p align="center">Numero de Visitantes:<img src='http://www.counter12.com/img-8Dx7C6yC-77.gif' border='0' alt='counter'><script type='text/javascript' src='http://www.counter12.com/ad.js?id=8Dx7C6yC'></script></p>
    -->
    	 <?php include 'rodape.php' ?>
    </div> <!-- END of footer -->
</div> <!-- END of footer wrapper -->

</body>
</html>
<?php
mysql_free_result($ls_versiculo);

mysql_free_result($ls_msg);
?>
	